home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
tools
/
pcuser.com
/
COPYFILE.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-02-03
|
430 b
|
17 lines
#include <string.h>
#include <stdlib.h>
copyfile (input, output)
char *input, *output;
{
char Copy[128] = "copy";
strncat (Copy, "\040", 1);
strncat (Copy, input, strlen(input));
strncat (Copy, "\040", 1);
strncat (Copy, output, strlen(output));
return (system (Copy)); /* Returns: 0 if successful */
/* nonzero if error occurs */
}